<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class StudyStudentClass extends Validate
{
    protected $rule = ['class_name' => 'require','class_note' => 'require',
    ];

    protected $message = ['class_name.require' => '班级名称为必填项','teacher.require' => '老师为必填项','class_note.require' => '班级备注为必填项',
    ];

    /**
     * 添加
     */
    public function sceneAdd()
    {
        return $this->only(['class_name','teacher','class_note',]);
    }

    /**
     * 编辑
     */
    public function sceneEdit()
    {
        return $this->only(['class_name','teacher','class_note',]);
    }
}
